package zjw.springboot2.test.controller;

import lombok.Data;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author by zhoum on 2019-08-29.
 */
@Data
public class HttpResponse implements Serializable {

    private static final long serialVersionUID = -8089593784506229313L;
    private Integer code;

    private String url;

    private String originalUrl;

    private String body;

    Map<String, String> header;  //NOSONAR

    public Map<String, String> getHeader() {
        if (header == null) {
            header = new LinkedHashMap<>(16);
        }
        return header;
    }

}
